﻿using System;
using System.Windows.Forms;
using GraphDrawing2.V2.Concrete.Model;

namespace GraphDrawing2.V2
{
    public class Presenter : IDisposable
    {
        readonly MyModel model;
        readonly IMyView view;

        public Presenter()
        {
            model = new MyModel();
            view = new Form1();
        }

        public void Run()
        {
            view.Initialize(model);
            Application.Run((Form) view);
        }

        public void Dispose()
        {
            view.Dispose();
        }
    }
}